﻿<div class="header">
  <div class="header-center">
    <div class="logo"><a href="index.html"><img src="/content/images/logo.jpg" /></a></div>
    <div class="top">
        @if(!HttpContext.Current.User.Identity.IsAuthenticated) 
        {
        <form action="/account/quicklogin" method="post">
            <div style="width:550px; float:right;">
                <span>用户名：</span>
                <input class="text-1" type="text" name="username" />
                <span>密码：</span>
                <input class="text-1" type="password" name="password"/>
                <input class="sub-1" type="submit" value="" />
                <a href="/account/register"><img alt="注册" src="/content/images/btn-regist.jpg" /></a><a href="regist-1.html">忘记密码？</a>
            </div> 
        </form>
        }
         else
         {
            <div style="width:550px; line-height:30px;">
                <div style="float:right; padding-right:40px; width:auto;"><a href="/member/index">@HttpContext.Current.User.Identity.Name&nbsp;欢迎您回来，</a><a href="javascript:;" onclick="logout()">注销</a></div>
            </div> 
            <script type="text/javascript">
                function logout() {
                    $.ajax({
                        url: '/account/logout',
                        cache: false,
                        ansy: false,
                        success: function () {
                            window.location.href = '/';
                            if (jQuery.browser.version == '6.0') {
                                window.event.returnValue = false;
                            }
                        }
                    });
                }
            </script>
        }
    </div>
    <div class="menu">
      <ul>
        <li><img src="/content/images/style-1.gif" /><a href="index.html">首页</a></li>
        <li><a href="search.html">同城交友</a></li>
      </ul>
    </div>
    <div class="search">
      <form action="search.html">
        <div class="search-data"> <span>地区:</span>
          <div class="search-sel">
            <input type="text" class="search-select" value="重庆市"/>
            <div class="search-selects">
              <div>北京市</div>
              <div>广州市</div>
              <div>深圳市</div>
              <div>成都市</div>
              <div>重庆市</div>
            </div>
          </div>
        </div>
        <div class="search-data"> <span>区域:</span>
          <div class="search-sel">
            <input type="text" class="search-select" value="沙坪坝"/>
            <div class="search-selects">
              <div>沙坪坝</div>
              <div>九龙坡</div>
              <div>渝北</div>
              <div>巴南</div>
            </div>
          </div>
        </div>
        <div class="search-data"> <span>角色:</span>
          <div class="search-sel">
            <input type="text" class="search-select" value="白领"/>
            <div class="search-selects">
              <div>白领</div>
              <div>护士</div>
              <div>老总</div>
              <div>个体户</div>
            </div>
          </div>
        </div>
        <div class="search-data"> <span>年龄:</span>
          <div class="search-sel">
            <input type="text" class="search-select" value="18~24"/>
            <div class="search-selects">
              <div>18~24</div>
              <div>25~30</div>
              <div>30~40</div>
              <div>40以上</div>
            </div>
          </div>
        </div>
        <div class="search-data"> <span>关键字:</span>
          <input style="background:#ff0f4;" type="text" />
        </div>
        <div class="search-sub">
          <input type="submit" value="" />
        </div>
      </form>
    </div>
  </div>
</div>